var submitForm = ''
$(window).ready(initValidate);
function initValidate(){
	submitForm = $('#submitForm')[0];
	submitForm.validators = new Array();
	var inputEl = $.find('input[name=company.name]')[0];
	submitForm.validators.push(new NullValidator(inputEl, "公司名称不能为空",$('#errorInfo')[0],true));
    inputEl = $.find('input[name=company.fax]')[0];
    submitForm.validators.push(new PhoneNumberFaxValidator(inputEl, $.find('input[name=company.telephone]')[0], "手机号码或传真号至少有一个", $('#errorInfo')[0], true));
}
function doValidate(event){
	formSubmitRequest(event,submitForm);
}